<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:replace="${title}">博客详情</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
</head>
<body>

<!--导航栏-->
<nav th:fragment="menu(n)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary menu stackable">
            <h2 class="ui teal header item">后台管理</h2>
            <a th:href="@{/admin/blogs}" class="m-item item m-mobile-hide"  th:classappend="${n==1} ?'active'"><i class="mini home icon"></i>博客管理</a>
            <a th:href="@{/admin/types}" class="m-item item m-mobile-hide"  th:classappend="${n==2} ?'active'"><i class="mini idea icon"></i>分类管理</a>
            <a th:href="@{/admin/tags}" class="m-item item m-mobile-hide"  th:classappend="${n==3} ?'active'"><i class="mini tags icon"></i>标签管理</a>
            <div class="right m-item m-mobile-hide menu">
                <div class="m-margin-top">
                    <a th:href="@{/index}" class="m-item item m-mobile-hide"><i class=" location arrow icon"></i>博客首页</a>
                </div>
                <div class="ui  dropdown item">
<!--                    <div class="text">-->
<!--                        <img th:src="@{${user.avatar}}" alt="" class="ui avatar image">-->
<!--                        <span th:text="${user.username}"></span>-->
<!--                    </div>-->
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="#" th:href="@{/admin/logout}" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon "></i>
    </a>
</nav>


<!--底部-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <h3 class="m-text-thin m-text-lined  m-opacity-tiny">Copyright& copy &nbsp  2020 - 2021 &nbsp  blog &nbsp  designed &nbsp by &nbsp YuanChundong</h3>
        <p><a class="m-text-thin m-text-lined  m-opacity-tiny " target="_blank" style="color: darkgray;" href="http://www.beian.miit.gov.cn">豫ICP备20013191号</a></p>
    </div>
</footer>

<th:block th:fragment="script">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery.scrollto@2.1.2/jquery.scrollTo.min.js"></script>
    <script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
</th:block>

</body>
</html>